/* pages/profile/weightMgr/weightMgr.wxss */
.wm-container {
  background: #f5f7fb;
  min-height: 100vh;
  padding-bottom: 40rpx
}

.wm-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24rpx 28rpx;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10
}

.nav-left {
  font-size: 36rpx;
  color: #333
}

.nav-title {
  font-size: 34rpx;
  font-weight: 600;
  color: #333
}

.nav-action {
  font-size: 28rpx;
  color: #c08a00
}

.card {
  background: #fff;
  margin: 20rpx;
  border-radius: 20rpx;
  box-shadow: 0 6rpx 18rpx rgba(0, 0, 0, .06);
  padding: 24rpx
}

.card-header {
  margin-bottom: 16rpx
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 8rpx 14rpx;
  border-radius: 20rpx;
  background: #eef3ff;
  color: #3b5bfd;
  font-size: 24rpx
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16rpx 0
}

.avatar {
  width: 120rpx;
  height: 120rpx;
  border-radius: 50%;
  margin-bottom: 12rpx
}

.nickname {
  font-size: 28rpx;
  color: #333
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16rpx;
  margin-top: 12rpx
}

// 小指标卡片（身高 / 体重）
.grid-2 > .card{
  position: relative;
  background:#f4f6f8;
  border-radius: 16rpx;
  padding: 18rpx 20rpx;
  box-shadow: none;
}
.grid-2 > .card .tag{
  position: absolute;
  top: -12rpx;
  left: -12rpx;
  background:#bfead2; /* 浅绿 */
  color:#156f48;      /* 深绿 */
  font-size: 22rpx;
  padding: 6rpx 12rpx;
  border-radius: 10rpx;
}
.grid-2 > .card .content{
  display:block;
  text-align:center;
  font-size: 36rpx;
  color:#495057;
  font-weight: 700;
  padding-top: 8rpx;
}

//
.metric {
  background: #f8fafc;
  border-radius: 16rpx;
  padding: 18rpx
}

.metric-tag {
  display: inline-block;
  font-size: 22rpx;
  color: #fff;
  padding: 6rpx 12rpx;
  border-radius: 12rpx;
  margin-bottom: 10rpx
}

.metric .metric-value {
  font-size: 36rpx;
  color: #343a40;
  font-weight: 700;
  justify-content: center;
}

.green {
  background: #50c878
}

.blue {
  background: #4dabf7
}

.purple {
  background: #b197fc
}

.pink {
  background: #ffa8c5
}

.bmi-row {
  margin-top: 18rpx
}

.bmi-title {
  font-size: 28rpx;
  color: #333;
  margin-right: 8rpx
}

.bmi-number {
  font-size: 36rpx;
  color: #111;
  margin: 0 12rpx
}

.bmi-state {
  font-size: 24rpx;
  color: #10b981
}

.bmi-bar {
  position: relative;
  height: 12rpx;
  background: #eef2f6;
  border-radius: 6rpx;
  margin: 16rpx 0
}

.bmi-bar-fill {
  position: absolute;
  top: -8rpx;
  width: 0;
  height: 28rpx;
  border-left: 4rpx solid #10b981
}

.bmi-scale {
  display: flex;
  justify-content: space-between;
  color: #98a2b3;
  font-size: 22rpx
}

.progress {
  display: flex;
  align-items: center;
  gap: 14rpx;
  margin-top: 8rpx
}

.progress-percent {
  font-size: 26rpx;
  color: #64748b;
  width: 80rpx
}

.progress-bar {
  flex: 1;
  height: 12rpx;
  background: #e6f0ff;
  border-radius: 8rpx;
  overflow: hidden
}

.progress-fill {
  height: 100%;
  background: #20b26b
}

.goal-range {
  display: flex;
  justify-content: space-between;
  margin: 10rpx 0;
  color: #64748b
}

.goal-dates {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6rpx 0
}

.date-chip {
  background: #10b981;
  color: #fff;
  border-radius: 999rpx;
  padding: 4rpx 12rpx;
  font-size: 22rpx
}

.date-text {
  color: #94a3b8;
  font-size: 24rpx
}

.info-box {
  border-radius: 16rpx;
  padding: 20rpx;
  text-align: center
}

.info-title {
  font-size: 24rpx;
  color: #94a3b8;
  margin-bottom: 8rpx
}

.info-value {
  font-size: 36rpx;
  color: #111
}

.info-box.light {
  background: #eef7ff
}

.info-box.mint {
  background: #e8fbf1;
  color: #0ea66c
}

.analysis-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16rpx
}

.analysis-item {
  background: #f8fafc;
  border-radius: 16rpx;
  padding: 24rpx;
  text-align: center
}

.a-title {
  font-size: 24rpx;
  color: #94a3b8;
  margin-bottom: 8rpx
}

.a-value {
  font-size: 30rpx;
  color: #111
}